package packets.s2cpackets;

import packets.SPacket;

/**
 * Server informs client to disconnect.
 * 
 * A reason can be appended too this message, and this
 * will then be displayed by the client.
 */
public class S0xFF extends SPacket {

	/**
	 * Disconnect packet without an additional message.
	 */
	public S0xFF() {
		super(0xff);
		addString("");
	}
	
	/**
	 * Disconnect message, with a message which will be displayed by the client.
	 * E.g.: "Server full", "Cheat detected".
	 * @param responsemessage Reason for the disconnection. 
	 */
	public S0xFF(String responsemessage) {
		super(0xff);
		addString(responsemessage);
	}
	

}
